package br.unifesp.lma.chamada.config;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import br.unifesp.lma.chamada.model.entity.Aluno;
import br.unifesp.lma.chamada.model.entity.Aula;
import br.unifesp.lma.chamada.model.entity.Disciplina;
import br.unifesp.lma.chamada.model.entity.Notas;
import br.unifesp.lma.chamada.model.entity.Professor;

import com.googlecode.objectify.ObjectifyService;

public class ConfigStartup implements ServletContextListener {
	
	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		ObjectifyService.register(Aluno.class);
		ObjectifyService.register(Aula.class);
		ObjectifyService.register(Disciplina.class);
		ObjectifyService.register(Professor.class);
		ObjectifyService.register(Notas.class);
	}
	
	@Override
	public void contextDestroyed(ServletContextEvent arg0) {}
	
}
